import request from '@/utils/request'

// 查询商业档案主档列表
export function listBussinessArchive(query) {
  return request({
    url: '/hbs/bussinessArchive/list',
    method: 'get',
    params: query
  })
}

// 查询商业档案主档详细
export function getBussinessArchive(id) {
  return request({
    url: '/hbs/bussinessArchive/' + id,
    method: 'get'
  })
}

// 新增商业档案主档
export function addBussinessArchive(data) {
  return request({
    url: '/hbs/bussinessArchive',
    method: 'post',
    data: data
  })
}

// 修改商业档案主档
export function updateBussinessArchive(data) {
  return request({
    url: '/hbs/bussinessArchive',
    method: 'put',
    data: data
  })
}

// 删除商业档案主档
export function delBussinessArchive(id) {
  return request({
    url: '/hbs/bussinessArchive/' + id,
    method: 'delete'
  })
}
